package classespinkpony
{
	[RemoteClass(alias='classespinkpony.User')]
	public class User
		
	{
		private var _id:Number;
		private var _first_name:String;
		private var _last_name:String;
		private var _username:String;
		private var _password:String;
		private var _salutation_id:Number;
		private var _phone:String;
		private var _email:String;
		private var _web:String;
		private var _registration:String;
		private var _activated:Boolean;
		private var _avatar:String;
		private var _invoice_address_id:Number;
		private var _admin:Boolean;
		
		//Salutation fields
		private var _sex = Boolean;
		
		public function set id(id:Number):void{
			this._id = id;
		}
		public function get id():Number{
			return this._id;
		}
		
		public function set first_name(first_name:String):void{
			this._first_name = first_name;
		}
		public function get first_name():String{
			return this._first_name;
		}
		
		public function set last_name(last_name:String):void{
			this._last_name = last_name;
		}
		public function get last_name():String{
			return this._last_name;
		}
		
		public function set username(username:String):void{
			this._username = username;
		}
		public function get username():String{
			return this._username;
		}
		
		public function set password(password:String):void{
			this._password = password;
		}
		public function get password():String{
			return this._password;
		}
		
		public function set salutation_id(salutation_id:Number):void{
			this._salutation_id = salutation_id;
		}
		public function get salutation_id():Number{
			return this._salutation_id;
		}
		
		public function set phone(phone:String):void{
			this._phone = phone;
		}
		public function get phone():String{
			return this._phone;
		}
		
		public function set email(email:String):void{
			this._email = email;
		}
		public function get email():String{
			return this._email;
		}
		
		public function set web(web:String):void{
			this._web = web;
		}
		public function get web():String{
			return this._web;
		}
		
		public function set registration(registration:String):void{
			this._registration = registration;
		}
		public function get registration():String{
			return this._registration;
		}
		
		public function set activated(activated:Boolean):void{
			this._activated = activated;
		}
		public function get activated():Boolean{
			return this._activated;
		}
		
		public function set avatar(avatar:String):void{
			this._avatar = avatar;
		}
		public function get avatar():String{
			if(_avatar != null && _avatar.length > 0){
				return _avatar;
			}
			else{
				return "no-avatar.gif";
			}
		}
		
		public function set invoice_address_id(invoice_address_id:Number):void{
			this._invoice_address_id = invoice_address_id;
		}
		public function get invoice_address_id():Number{
			return this._invoice_address_id;
		}

		public function get admin():Boolean
		{
			return _admin;
		}

		public function set admin(value:Boolean):void
		{
			_admin = value;
		}

		public function get sex()
		{
			return _sex;
		}

		public function set sex(value):void
		{
			_sex = value;
		}


	}
}
